<div class="row">

	<div class="span12">		

		<h1>Param&egrave;tres de la photo</h1>

		<img src="<?php echo BASE_URL.'/webroot/img/imgusers/'.$_SESSION['id'].'/'.$fichier; ?>" alt="">

		<!-- FORMULAIRE D'AJOUT DE PHOTO A UN ALBUM -->
		<form class="form-horizontal well-small" action="<?php echo Router::url('photos/valideAjout'); ?>" method="post" class="form-horizontal well-small" enctype="multipart/form-data">
	
			<!-- Chemin de l'image complet -->
			<input type="hidden" name="inputNomExt" value="<?php echo $fichier; ?>" />


			<!-- Nom de l'image -->
			<div class="control-group">
				<label class="control-label" for="inputNom">Nom de l'image</label>
				<div class="controls">
					<input type="text" id="inputNom" name="inputNom" value="<?php echo $nom; ?>" />
				</div>
			</div>

			<!-- Description de l'image -->
			<div class="control-group">
				<label class="control-label" for="inputDescription">Description</label>
				<div class="controls">
					<textarea id="inputDescription" name="inputDescription" row="4"></textarea>
				</div>
			</div>

			<!-- Tags de l'image -->
			<div class="control-group">
				<label class="control-label" for="inputTags">Tags 
					<a href="#" id="monTooltip" data-toggle="tooltip" title="Vos tags doivent &ecirc;tre s&eacute;par&eacute;s par des espaces">
						<i class="icon-asterisk"></i>
					</a>
				</label>
				<div class="controls">
					<input type="text" id="inputTags" name="inputTags" />
				</div>
			</div>

			<!-- Album dans lequel ajouter l'image -->
			<div class="control-group">
				<label class="control-label" for="inputAlbum">Album</label>
				<div class="controls">
					<select id="inputAlbum" name="inputAlbum">
						<?php foreach ($albums as $k => $v) : ?>
							<option>
								<?php echo $v->nom; ?>
							</option>
						<?php endforeach; ?>
					</select>
				</div>
			</div>

			<!-- En ligne ou non -->
			<div class="control-group">
				<label class="control-label" for="inputEnLigne">Public</label>
				<div class="controls">
					<label class="checkbox" name="inputEnLigne" value="">
						<input type="checkbox" name="inputEnLigne"> 
					</label>
				</div>
			</div>

			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<input type="submit" class="btn btn-inverse" value="Enregistrer" />
				</div>
			</div>	

		</form>
	


	</div>

</div>

<script type="text/javascript">
	$('#monTooltip').tooltip('toggle');
</script>